package com.visionblue.business.ship.base

import android.os.Bundle

/**
 * @author: xlh
 * @date: 2020-04-10 1:58 PM
 * @desc:
 */
abstract class BaseVMActivity<VM : BaseViewModel> : BaseActivity() {

    lateinit var mViewModel: VM

    override fun onCreate(savedInstanceState: Bundle?) {
        mViewModel = initVM()
        super.onCreate(savedInstanceState)
    }

    abstract fun initVM(): VM
}